<extend name="base" />

<block name="style">
<style type="text/css">
.main_info table tr:hover{background-color:rgb(240,245,250);}
.main_info table tr:nth-child(2n){background-color:rgb(245,246,250);}
</style>
</block>

<block name="md_title">
	<div class="title">Bug列表</div>
    <button class="buttonC" style="float:left;">全部</button>
    <button class="buttonC" style="float:left">我的</button>
    <button class="buttonB" style="float:right">刷新</button>
    <button class="buttonA" style="float:right">添加</button>
</block>

<block name="main_cont">
	<table class="table_buglist">
    <thead>
    <tr><th width="100px">序号</th><th width="100px">版本</th><th>Bug描述</th><th width="100px">级别</th><th width="100px">状态</th>
    	<th width="120px">发现人</th><th width="120px">负责人</th><th width="100px">时间</th></tr></thead>
    <foreach name="rBugList" item="bug">
    	<tr><td>{$bug.bugid}</td><td>{$bug.version}</td><td><a href="detailBug?bugid={$bug.bugid}">{$bug.title}</a></td><td>{$bug.level}</td>
        	<td>{$bug.status}</td><td>{$bug.finduserid}</td><td>{$bug.ownerid}</td><td>{$bug.thedate|date="Y-m-d",###}</td></tr>
    </foreach>
    </table>
</block>

<block name="script">
<script src="__ROOT__/Public/Js/jquery.tablesorter.js"></script>
<script src="__ROOT__/Public/Js/jquery.tablesorter.widgets.js"></script>
<script language="javascript">
$(function(){
	$('.table_buglist').tablesorter({
		widgets        : ['zebra', 'columns'],
		usNumberFormat : false,
		sortReset      : true,
		sortRestart    : true
	});
});

$("button").eq({$isMyBug}).css("background-color","rgb(84,100,120)").css("color","#FFF");
</script>
</block>